<%@page pageEncoding="UTF-8" contentType="text/html;charset=utf-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生信息修改</title>

    <style>
        #app{
            width: 500px;
            margin: 0px auto;
        }
    </style>

</head>
<body>
  <div id="app">
        <h4>学生信息管理-修改</h4>
        <form action="update" method="post">
                <table>
                    <tr>
                        <td>姓名</td>
                        <td>
                            <input type="text" name="name" value="${student.name}">
                        </td>
                    </tr>

                    <tr>
                        <td>年龄</td>
                        <td>
                            <input type="text" name="age" value="${student.age}">
                        </td>
                    </tr>
                    <tr>
                        <!--解决不了-->
                        <td>性别</td>
                        <td>
                            <input type="radio" name="sex" value="M" <c:if test="${student.sex=='M'}">checked="checked"</c:if> >男
                            <input type="radio" name="sex" value="F" <c:if test="${student.sex=='F'}">checked="checked"</c:if>>女
                        </td>
                    </tr>
                    <tr>
                        <td>联系电话</td>
                        <td>
                            <input type="text" name="telephone" value="${student.telephone}">
                        </td>
                    </tr>
                    <tr>
                        <td>地址</td>
                        <td>
                            <input type="text" name="address" value="${student.address}">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type="submit" value="修改">
                        </td>
                    </tr>
                </table>
                <input type="hidden" name="id" value="${student.id}">
        </form>
  </div>
</body>
</html>